package com.pureut.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pureut.order.domain.CustomerManagement;
import com.pureut.order.dto.CustomerManagementDto;
import com.pureut.order.export.CustomerManagementExport;
import com.pureut.order.vo.CustomerManagementVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CustomerManagementMapper extends BaseMapper<CustomerManagement> {

    /**
     * 客户列表
     * @param customerManagementVo
     * @return
     */
    List<CustomerManagementDto> getCoustomerList(CustomerManagementVo customerManagementVo);


    /**
     * 获取客户编号
     * @return
     */
    List<CustomerManagementDto> getCustomerNumMax();

    /**
     * 客户信息导出
     */
    List<CustomerManagementExport> getExportList(@Param("customerManagementVo") CustomerManagementVo customerManagementVo);

    /**
     * 根据多个id获取数据
     */
    List<CustomerManagementExport> getDataByIdStr(@Param("idList") List<String> idList);

    CustomerManagement getCustomerId(String customerName);
}
